from autoTest_prtcApi.core.rest_client import RestClient


## 构造接口的请求方式,接口地址和请求头

class UserApiUtils(RestClient):

    def register_utils(self, headers, **kwargs):
        return self.excute_request("POST", "/register", headers=headers, **kwargs)

    def login_utils(self, headers, **kwargs):
        return self.excute_request("POST", "/login", headers=headers, **kwargs)

    def modifyUserNick_utils(self,headers,**kwargs):
        return self.excute_request("PUT", "/modifyUserNick", headers=headers, **kwargs)

    def modifyHeadPic_utils(self,headers,**kwargs):
        return self.excute_request("PUT", "/modifyHeadPic", headers=headers, **kwargs)


# 实例化UserApiUtils
# userApiUtil = UserApiUtils()